package ctbu.edu.cn.teachersjpa.respository;

import ctbu.edu.cn.teachersjpa.domain.Teachers;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TeachersRepository extends JpaRepository <Teachers,Integer>{
    List<Teachers> findTeachersByWorknumber(String worknumber);

    List<Teachers> findByName(String name);
}
